<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="table_top_left" width="17" valign="top"></td>
		<td class="table_top_middle" valign="top"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				<tr>
					<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
				</tr>
			</table></td>
		<td class="table_top_right" width="16" valign="top"></td>
	</tr>
	<tr>
		<td class="table_left_side" height="71" valign="middle"></td>
		<td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td valign="top"><table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0">
							<tr>
								<td class="left_txt"><?php echo $nav_label,$title;?></td>
							</tr>
							<tr>
								<td><!--类别管理开始 -->
									<table id="bs" width="100%" border="1" cellpadding="0"
								class="list" style="border-collapse: collapse"
								bordercolor="#C0C0C0">
										<tr>
											<th bgcolor="#EEF2FB"><?php echo lang('com_list_number');?></th>
											<th height="3%" bgcolor="#EEF2FB"><?php echo lang('ad_place');?></th>
											<th height="10%" bgcolor="#EEF2FB"><?php echo lang('ad_price');?></th>
											<th height="10%" bgcolor="#EEF2FB"><?php echo lang('ad_size');?></th>
											<th height="3%" bgcolor="#EEF2FB"><?php echo lang('ad_amount');?></th>
											<th height="5%" bgcolor="#EEF2FB"><?php echo lang('com_list_active');?></th>
											<th width="15%" height="25" bgcolor="#EEF2FB"><?php echo lang('com_list_operation');?></th>
											<th width="11%" bgcolor="#EEF2FB"><?php echo lang('com_list_check_all');?>
												<input name="chkall" type="checkbox" id="chkall" value="listid[]" /></th>
										</tr>
										<!--循环开始 -->
										<?php
								if (count($ad_place)>0) :
								   foreach ($ad_place as $list):
									  ?>
										<tr>
											<td width="5%" align="center"><?php echo $list['ordernum'];?></td>
											<td width="17%" align="left"><?php echo $list['place']?></td>
											<td width="12%" align="center"><?php echo $list['price']?></td>
											<td width="20%" align="center"><?php echo $list['height']?> X <?php echo $list['width']?></td>
											<td width="10%" align="center"><?php echo $list['amount']?></td>
											<td width="10%" align="center"><?php echo $list['isactive']?></td>
											<td align="center"><a href="<?php echo base_url('ad/place_edit/'.$list['id']);?>"><?php echo lang('com_button_edit');?></a>&nbsp;
											<a href="#"><?php echo lang('ad_code');?></a></td>
											<td align="center"><input name="listid[]" type="checkbox" value="<?php echo $list['id'];?>" /></td>
										</tr>
										<?php
								endforeach;
								else:
								   echo '<tr><td height="25" colspan="9" >&nbsp;'.lang('com_tip_no_content').'</td></tr>';
								endif;
								?>
										<!--循环结束 -->
										<tr>
											<td colspan="8" align="right"><input name="delete_url" type="hidden" id="delete_url" value="<?php echo base_url('ad/place_delete_action');?>" />
												<input class="button" name="b_delete" id="b_delete" type="button" value="<?php echo lang('com_button_delete');?>" /></td>
										</tr>
									</table>
									<!--类别管理结束 --></td>
							</tr>
						</table></td>
				</tr>
			</table></td>
		<td class="table_right_side"></td>
	</tr>
	<tr>
		<td valign="middle" class="table_bottom_left">&nbsp;</td>
		<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
		<td class="table_bottom_right">&nbsp;</td>
	</tr>
</table>
</body>
</html>
